Added on click event.