# Why do elements stay active on a previous screen after the screen has changed, and how do get it to check if the user is on a screen

**URL:** <https://community.thunkable.com/t/why-do-elements-stay-active-on-a-previous-screen-after-the-screen-has-changed-and-how-do-get-it-to-check-if-the-user-is-on-a-screen/564613>\
**Category:** Questions about Thunkable X\
**Created:** [May 3, 2020, 3:13am UTC](https://community.thunkable.com/t/why-do-elements-stay-active-on-a-previous-screen-after-the-screen-has-changed-and-how-do-get-it-to-check-if-the-user-is-on-a-screen/564613 "2020-05-03T03:13:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dom\_pizza\_checker](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dom_pizza_checker/32/61483_2.png) [@dom\_pizza\_checker](https://community.thunkable.com/u/dom_pizza_checker)\
**Post date:** [May 3, 2020, 3:13am UTC](https://community.thunkable.com/t/why-do-elements-stay-active-on-a-previous-screen-after-the-screen-has-changed-and-how-do-get-it-to-check-if-the-user-is-on-a-screen/564613/1 "2020-05-03T03:13:36Z")

</div>

Hello,  
When the game I am making switches screens the elements from the previous screen stay active which makes the next screen start to load then makes that screen load again then makes it load again.  
How can this be solved?  
And is there a way for a screen to check if the user is on a certain screen?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 3, 2020, 3:41am UTC](https://community.thunkable.com/t/why-do-elements-stay-active-on-a-previous-screen-after-the-screen-has-changed-and-how-do-get-it-to-check-if-the-user-is-on-a-screen/564613/2 "2020-05-03T03:41:57Z")

</div>

Create a stored var. index your screens. When you switch screens change the index in the stored var correspondingly. Have the app check.

Can you be more particular as to what is running when the screen isn’t open

---

<div class="post-metadata">

**Author:** ![dom\_pizza\_checker](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dom_pizza_checker/32/61483_2.png) [@dom\_pizza\_checker](https://community.thunkable.com/u/dom_pizza_checker)\
**Post date:** [May 3, 2020, 4:29pm UTC](https://community.thunkable.com/t/why-do-elements-stay-active-on-a-previous-screen-after-the-screen-has-changed-and-how-do-get-it-to-check-if-the-user-is-on-a-screen/564613/3 "2020-05-03T16:29:52Z")

</div>

What is a stored var?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:29am UTC](https://community.thunkable.com/t/why-do-elements-stay-active-on-a-previous-screen-after-the-screen-has-changed-and-how-do-get-it-to-check-if-the-user-is-on-a-screen/564613/4 "2024-11-08T11:29:29Z")

</div>

Closed on November 8, 2024, 11:29am UTC


