Added click event handler for calendar