started mainwindows class cleanup