Form buttons not working as expected?

Hi there! Hope you are good.
I am stuck in a situation where my data changes when I click on any other button on the form.
For example(the image I have shared), I have filtered my data from the form option in streamlit sidebar, now when I try to work on this filtered data based on the form buttons that I have on the front page it again gets the unfiltered data without the effect of any sidebar filter that I have applied in the beginning. What is this issue??
Please help me on this.
#streamlit # streamlit-form # form

Can you provide a sample minimal reproducible code?

I have found the solution of this. Thank you!