add ref to plugin template