make main window resizable