Move messagebox from MainWindow