Deduplicate methods of MainWindow