Implemented click event on button