added a dockwidget to mainwindow.cpp