changed templates to views