change size of main window