remove unneeded code and fix MainWindow.ok_to_continue()