correct deletion of the MainWindowInterface