updating all templates according to the new model.