Changes on MainWindow.cpp