move templates to individual files