Fixed mainWindow.cpp to function properly. Whoops.