layout for mainwindow.