adding resizable support to main window