move templates to views