Update mainwindows.cpp