added handler to be called when button is hit