Created event handling for all menu items on both frames.