added block based handlers for button actions