modified the flow to include enable/disable button in dashboard and inject nodes in editor
import this flow and let us know where are you having issue


[{"id":"b804e441c7dae229","type":"inject","z":"bbf5094bc59a03b8","name":"Enable","props":[{"p":"enabled","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":870,"y":1020,"wires":[["b47974f481265742"]]},{"id":"b47974f481265742","type":"ui_slider","z":"bbf5094bc59a03b8","name":"","label":"slider","tooltip":"","group":"e7248049173432e6","order":3,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":0,"max":10,"step":1,"className":"","x":1050,"y":1020,"wires":[[]]},{"id":"8a64fabb6ede9a7b","type":"inject","z":"bbf5094bc59a03b8","name":"Disable ","props":[{"p":"enabled","v":"false","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":870,"y":1060,"wires":[["b47974f481265742"]]},{"id":"3eb5f221ddaabbb4","type":"ui_button","z":"bbf5094bc59a03b8","name":"","group":"e7248049173432e6","order":1,"width":0,"height":0,"passthru":false,"label":"Enable","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":880,"y":1120,"wires":[["dc814d450f45a513"]]},{"id":"046bd96d83fe934d","type":"ui_button","z":"bbf5094bc59a03b8","name":"","group":"e7248049173432e6","order":1,"width":0,"height":0,"passthru":false,"label":"Disable","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"false","payloadType":"bool","topic":"topic","topicType":"msg","x":880,"y":1160,"wires":[["dc814d450f45a513"]]},{"id":"dc814d450f45a513","type":"change","z":"bbf5094bc59a03b8","name":"","rules":[{"t":"set","p":"enabled","pt":"msg","to":"payload","tot":"msg"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1060,"y":1140,"wires":[["b47974f481265742"]]},{"id":"e7248049173432e6","type":"ui_group","name":"Default","tab":"4416caf9db5c96d9","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"4416caf9db5c96d9","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]