arranged MainWindow initialize order