[fix] merge clean up MainWindow