Added button handlers.