added mainwindow with menu