template starting with encoder view