MainWindow template setup