Update template structure