Click row functionality fixed