Adds event listener to button.