Updating template structure