Added event handlers for the Main Menubar buttons.