passed service to template