adding a mainwindow to the programm