moving templates to the views directory