reverted previous change on MainWindow that caused compilation issues for plugins