Rename mainwidget to mainwindow.