Creat a mainwindow