# Refresh entire tab on button click

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Frefresh-entire-tab-on-button-click%2F36071%3E%5C
**Category:** 🔒 Gradio\
**Created:** [April 10, 2023, 1:42am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Frefresh-entire-tab-on-button-click%2F36071 "2023-04-10T01:42:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![entropy](https://avatars.discourse-cdn.com/v4/letter/e/5f9b8f/32.png) [@entropy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fentropy)%5C
**Post date:** [April 10, 2023, 1:42am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Frefresh-entire-tab-on-button-click%2F36071%2F1 "2023-04-10T01:42:20Z")

</div>

My app displays several dataframes to the user. The app:

1. Reads all filenames
2. Generates previews for each file
3. Displays these to the user

I want the user to be able to add files with upload or delete files (implemented as a dropdown selection + submit button).

Upload/deletion works fine, but I can’t figure out how to get the UI to refresh to account for the changed list of files.

Files are rendered as an accordion with three dataframes under each accordion. I can’t use the update syntax because accordions are not valid inputs/outputs.

Is there a way to trigger a refresh of a specific tab?

---

<div class="post-metadata">

**Author:** ![murphybridget](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@murphybridget](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmurphybridget)%5C
**Post date:** [November 8, 2023, 1:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Frefresh-entire-tab-on-button-click%2F36071%2F4 "2023-11-08T13:21:08Z")

</div>

> [@murphybridget](#):
>
> Good luck on your project. I guess it’s better to share some parts of it. That would help expand our understanding of the problem at hand.

Good luck on your project. I guess it’s better to share some parts of it. That would help expand our understanding of the problem at hand and may be we can give a better solution.
