make the scripting window the document main window