edit template view