restored mainwindows