mainwindow size adjusted