changed templates to pages