moved templates to views