refactored data out from presentation
persisting entries
only persisting data locally when not logged in