Update mainwindow.cpp(with right click)