figures out which row is tapped