Updated click event