We actually cant see your screen recording, as you can’t post screen recordings on the forum. I imagine your having an issue with the statefulness of your app based on your description. Because the text_input fields do not preserve the users selection after multiple clicks/interactions on the page, when you hit enter on the second text_input it resets the app and it runs the script from top to bottom again.
We are currently creating a session state for streamlit to combat this very thing. IN the mean time there are some workarounds:
Also, checkout our state survey if you want to be involved in the development of session state!