dynamic resizing of the main window should work fine