moved tmpl to view directory