# Ui template script lost after switch of tab

**URL:** <https://discourse.nodered.org/t/ui-template-script-lost-after-switch-of-tab/68650>\
**Category:** Dashboard\
**Created:** [6 October 2022 18:48 UTC](https://discourse.nodered.org/t/ui-template-script-lost-after-switch-of-tab/68650 "2022-10-06T18:48:06Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [7 October 2022 10:25 UTC](https://discourse.nodered.org/t/ui-template-script-lost-after-switch-of-tab/68650/7 "2022-10-07T10:25:37Z")

</div>

Take a look at this thread and see if it helps

> [@Auto refresh dashboard when changing tabs](https://discourse.nodered.org/t/auto-refresh-dashboard-when-changing-tabs/61515/3):
>
> Hi, i have connected the nodes like this in both flows, but nothing happens when I change tabs. When the dashboard is loaded from scratch in the (chrome) browser, the context data is loaded into the first tab, but when I switch tabs I need to refresh each time

---

_[View the full topic](https://discourse.nodered.org/t/ui-template-script-lost-after-switch-of-tab/68650)._
