Update masterwindow.cpp