resize MainWindow