this should also hide main window