# Dynamically assign UI to a group/tab

**URL:** <https://discourse.nodered.org/t/dynamically-assign-ui-to-a-group-tab/11373>\
**Category:** Dashboard\
**Created:** [21 May 2019 15:14 UTC](https://discourse.nodered.org/t/dynamically-assign-ui-to-a-group-tab/11373 "2019-05-21T15:14:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andydesjardins](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andydesjardins/32/8556_2.png) [@Andydesjardins](https://discourse.nodered.org/u/Andydesjardins)\
**Post date:** [21 May 2019 15:14 UTC](https://discourse.nodered.org/t/dynamically-assign-ui-to-a-group-tab/11373/1 "2019-05-21T15:14:38Z")

</div>

Hello,

Is there a way to dynamically assign UI node to a group/tab?

I have a tab with lot of stuff in it. I want to create a new tab that is very similar, but I want to avoid to duplicate everything.

Thanks

---

<div class="post-metadata">

**Author:** ![olab](https://avatars.discourse-cdn.com/v4/letter/o/d07c76/32.png) [@olab](https://discourse.nodered.org/u/olab)\
**Post date:** [21 May 2019 15:46 UTC](https://discourse.nodered.org/t/dynamically-assign-ui-to-a-group-tab/11373/2 "2019-05-21T15:46:55Z")

</div>

I had a similar issue a while ago. I decided to put all values to be shown in ui into global variables and then use a simple Read global variable and link it to the ui... In this way I was able to sort all math/logic into one single flow and all ui specific into another flow.

Maybe this whould solve your problem?

---

<div class="post-metadata">

**Author:** ![Andydesjardins](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andydesjardins/32/8556_2.png) [@Andydesjardins](https://discourse.nodered.org/u/Andydesjardins)\
**Post date:** [21 May 2019 17:24 UTC](https://discourse.nodered.org/t/dynamically-assign-ui-to-a-group-tab/11373/3 "2019-05-21T17:24:58Z")

</div>

But you still need to duplicate your UI if you want 2 similar UI with very similar logic?

---

<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:** [21 May 2019 18:28 UTC](https://discourse.nodered.org/t/dynamically-assign-ui-to-a-group-tab/11373/4 "2019-05-21T18:28:45Z")

</div>

Yes - there is a 1:1 between widgets on desktop and in the UI - so if you need two tabs/pages you need to duplicate the nodes and allocate them to the appropriate tab/page
