# Cannot order widget Switch created from subflow template

**URL:** <https://discourse.nodered.org/t/cannot-order-widget-switch-created-from-subflow-template/16702>\
**Category:** Dashboard\
**Created:** [14 October 2019 15:38 UTC](https://discourse.nodered.org/t/cannot-order-widget-switch-created-from-subflow-template/16702 "2019-10-14T15:38:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinamore](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tinamore/32/15693_2.png) [@tinamore](https://discourse.nodered.org/u/tinamore)\
**Post date:** [14 October 2019 15:38 UTC](https://discourse.nodered.org/t/cannot-order-widget-switch-created-from-subflow-template/16702/1 "2019-10-14T15:38:12Z")

</div>

Hi,

I have create a teamplate subflow with one switch wiget in subflow. I call it: "Tasmota Sonoff Dynamic":

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/f346b68b4211be8b5ec38ecaed62e24d88f66be2.png)

But when I create multiple nodes from teamplate subflow (Tasmota Sonoff Dynamic):  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/056272522e7b76472a68c491fb37c83e8d047623.png)

I can not sort order wiget Switch in dardboard because In tab Layout show ONLY ONE SWITCH UI. I can not change the order by dragging.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5bbb8d94f3514477de0ab0aaee11f4f8548ef827.png)

I think the problem is the need to dynamically name the switch. But I cannot dynamically name u swtich according to environment variables like:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/3a45eb53d285bd2145919c29fe93d0d160387b0a.png)

How to sort switches in the desired order ?  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/46cb2de0a4a4a820a4870a79054daf4e71c4eb1b.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [14 October 2019 16:08 UTC](https://discourse.nodered.org/t/cannot-order-widget-switch-created-from-subflow-template/16702/2 "2019-10-14T16:08:07Z")

</div>

UI widgets are not supported inside subflows.  
(I'm surprised it works that well 🙂

---

<div class="post-metadata">

**Author:** ![tinamore](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tinamore/32/15693_2.png) [@tinamore](https://discourse.nodered.org/u/tinamore)\
**Post date:** [14 October 2019 16:11 UTC](https://discourse.nodered.org/t/cannot-order-widget-switch-created-from-subflow-template/16702/3 "2019-10-14T16:11:47Z")

</div>

@dceejay It works very well and smoothly. The problem is not to be sorted.
