Latest update to the table click event