correctly listening to button event now