Your posting does not contain any code that would persist items in any way.
So if "when i closed the app and open the app" means you stop the program and run it again, then of course there won't be any data in the newly started instance of your program.
Cheers,
_
Bookmarks