How to use multiple screen but without affecting the data of it

That's because you didn't store your data in TinyDB.
Global variables get erased when you cross screens.