change the mainwindow