Add event handler to mybutton