Turned the main window into a dialog box