added click listener for each row