update plugin to work with new template service and template_engine_registered event