update primary template