Add click event to button