*added function to get data from selected row