How to hide main page's markdown and show only selected page

Hi all,

One small query (I am new to Streamlit, trying it out for an ML App), how exactly one would hide say the main page markdown and show only the selected page’s markdown (selection from left menu)?

st.markdown() has been passed HTML string and now new HTML string will be used for new page but previous one has to be hidden.

Ok… I have worked out a solution using multiple placeholders… 1 for each element… but still is there a better way of doing it?… because now I get 'setIn' cannot be called on an ElementNode on popup when I display new page after hiding previous one.