mv mainwindows to patcher class