added click event to table row