resized the main window