reorganising MainWindow