templates to theme