adding mainwindow page sources and removing mainwindow sources