add windows into mainwindows