Attached event handlers to button