Resize of main window