added force option to hide_main_window which causes a removal and re-creation of the mainWindow on a forced hide.