I am trying to change data of a selected row. In my case when a row is clicked it returns the index of that row and then i am trying to update that row with the ind