revert delete main window