create the mainwindow for egcas