# Is it possible to change the interface with a button?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fis-it-possible-to-change-the-interface-with-a-button%2F45021%3E%5C
**Category:** 🔒 Gradio\
**Created:** [June 29, 2023, 8:50pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fis-it-possible-to-change-the-interface-with-a-button%2F45021 "2023-06-29T20:50:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michelangiolo](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/michelangiolo/32/53459_2.png) [@Michelangiolo](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FMichelangiolo)%5C
**Post date:** [June 29, 2023, 8:50pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fis-it-possible-to-change-the-interface-with-a-button%2F45021%2F1 "2023-06-29T20:50:54Z")

</div>

Hi,

let’s say I have a simple interface with a slider and a button.

If I press the button, I would like the interface to create as many buttons as the number in the slider.

Is it possible?  
Thank you

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [June 29, 2023, 11:34pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fis-it-possible-to-change-the-interface-with-a-button%2F45021%2F2 "2023-06-29T23:34:57Z")

</div>

hi @Michelangiolo ,

currently not possible yet, but you can have hidden components on the screen and show and hide then

> **[Controlling Layout](https://gradio.app/controlling-layout/#variable-number-of-outputs)**
>
> A Step-by-Step Gradio Tutorial

more here

> **[Is it possible to update the UI dynamically ? · gradio-app/gradio ·...](https://github.com/gradio-app/gradio/discussions/404)**
>
> Is there a way to update the UI based on the values of the input fields? For instance, I list models with a dropdown and I want to update the set of inout fields based on the selected model Is that...
