updated to log which row is selected