Added a menubar and a dialog