how to add click listener to button