button event listener bugfix