Added events for GUI buttons.