Removed unnecessary functions from MainWindow