# Tab strip component Selected Tab when using timeout script to return home

**URL:** <https://forum.inductiveautomation.com/t/tab-strip-component-selected-tab-when-using-timeout-script-to-return-home/78469>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [August 28, 2023, 5:41pm UTC](https://forum.inductiveautomation.com/t/tab-strip-component-selected-tab-when-using-timeout-script-to-return-home/78469 "2023-08-28T17:41:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rebecca\_Reneker](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Rebecca\_Reneker](https://forum.inductiveautomation.com/u/Rebecca_Reneker)\
**Post date:** [August 28, 2023, 5:41pm UTC](https://forum.inductiveautomation.com/t/tab-strip-component-selected-tab-when-using-timeout-script-to-return-home/78469/1 "2023-08-28T17:41:55Z")

</div>

I have a project that uses a single tier of tab strip navigation. I have implemented a "return home" client timer script running to return the home screen after 30 seconds of inactivity. That is all working as desired but, the tab strip shows the last screen as selected instead of the home screen they are on as selected.

The tab strip still functions fine in this situation but is there a way to update the tab strip selection to match the current screen when navigating with scripts?

---

<div class="post-metadata">

**Author:** ![Rebecca\_Reneker](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Rebecca\_Reneker](https://forum.inductiveautomation.com/u/Rebecca_Reneker)\
**Post date:** [August 28, 2023, 6:48pm UTC](https://forum.inductiveautomation.com/t/tab-strip-component-selected-tab-when-using-timeout-script-to-return-home/78469/2 "2023-08-28T18:48:11Z")

</div>

I figured it out!

Seeing as my tab strip is on a docked window and should always be open I was able to replace:  
system.nav.swapTo("Home")  
with:  
Navigation = system.gui.getWindow("Navigation")  
Navigation.getRootContainer().getComponent("Tab Strip").selectedTab = "Home"

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 28, 2023, 6:56pm UTC](https://forum.inductiveautomation.com/t/tab-strip-component-selected-tab-when-using-timeout-script-to-return-home/78469/3 "2023-08-28T18:56:05Z")

</div>

You could probably also bind the selectedTab property to the `[System]Client/CurrentWindow` tag, as long as you're not using multiple desktops.
