Made main window resizable