fix templates views