[2] Reorganized mainwindow file.