The button inside a button seems to reset the whole app.Why?

Hi, just posted a solution here using SessionState:
https://discuss.streamlit.io/t/button-inside-button/12046/3?u=davidusb