# Node red tab on dashboard

**URL:** <https://discourse.nodered.org/t/node-red-tab-on-dashboard/12559>\
**Category:** General\
**Created:** [24 June 2019 20:03 UTC](https://discourse.nodered.org/t/node-red-tab-on-dashboard/12559 "2019-06-24T20:03:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![khalil](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@khalil](https://discourse.nodered.org/u/khalil)\
**Post date:** [24 June 2019 20:03 UTC](https://discourse.nodered.org/t/node-red-tab-on-dashboard/12559/1 "2019-06-24T20:03:08Z")

</div>

hi everyone

is there any way to know wich actual tab we are in node red's dashboard with a code program inside a function node ? i would like to do something like this in a function node :

if garden\_tab is pushed  
do something

if room\_tab is pushed  
do something

 ![tabs-layout](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/6a9b341d1795bb1a4afb12cc1131b3e90dee01f4.png)

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [24 June 2019 20:08 UTC](https://discourse.nodered.org/t/node-red-tab-on-dashboard/12559/2 "2019-06-24T20:08:31Z")

</div>

Have you tried the ui\_control node?
