merge template with app