change the size of mainwindow