Added click events to table rows