# Detect page refresh (F5)

**URL:** https://discourse.nodered.org/t/detect-page-refresh-f5/11377
**Category:** General
**Created:** [21 May 2019 15:56 UTC](https://discourse.nodered.org/t/detect-page-refresh-f5/11377 "2019-05-21T15:56:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![AliBenBelgacem](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@AliBenBelgacem](https://discourse.nodered.org/u/AliBenBelgacem)
#### Post date: [21 May 2019 15:56 UTC](https://discourse.nodered.org/t/detect-page-refresh-f5/11377/1 "2019-05-21T15:56:07Z")

</div>

Hello,

I have a table with list of compsed rows (labels, dropdown, input text ...)  
When i refresh my web page (F5), i lose all the data in the table.  
this bhavior is normal since i populate my table with an inject node containg the sql query.

Is there a way to detect that the user refresh the page so i can execute again my sql select query ?

thank you in advance for help

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [21 May 2019 16:09 UTC](https://discourse.nodered.org/t/detect-page-refresh-f5/11377/2 "2019-05-21T16:09:13Z")

</div>

Hi @AliBenBelgacem - if you are talking about Node-RED Dashboard, then the `ui_control` node can be used to detect when the dashboard is opened.

If you aren't talking about Node-RED Dashboard, then you'll have to provide more details.

---

<div class="post-metadata">

### Author: ![AliBenBelgacem](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@AliBenBelgacem](https://discourse.nodered.org/u/AliBenBelgacem)
#### Post date: [21 May 2019 16:16 UTC](https://discourse.nodered.org/t/detect-page-refresh-f5/11377/3 "2019-05-21T16:16:05Z")

</div>

![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/51f97bb0d54b2e04bbde4c11d3634cb9218e7e6f.png)

Am using ui\_template to create the table.

How to include the ui\_control to achieve my goal ?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [21 May 2019 16:17 UTC](https://discourse.nodered.org/t/detect-page-refresh-f5/11377/4 "2019-05-21T16:17:29Z")

</div>

> [@AliBenBelgacem](#):
>
> How to include the ui\_control to achieve my goal ?

Find the `ui_control` node in your palette and add it to your workspace. Then read its help text in the info sidebar.
