mainwindow empty but ready