move templates to files