Added click event handler