Added handle_events function and moven MENU DEFINES.