moving templates to a separate file