Updated main window so that the WebView is properly positioned.