moved Menubar to separate file to improve clarity
added exitdialog if the config has been modified