added mainwindow.cpp