resize main window