update mainwindow.cpp and some *.ui files