changing button event handler