add click behavior to button