main window removal