Change template structure