Update template when model is updated