About the data disappearing

hello im using streamlit multipage, with nav bar option, whenever i get into the new page and returning to the previous page, the data in the previous page is disappearing.

You will need to use session state to save information between pages.