Reintegrated missing functions to MainWindow