moved templates to files