level management infrastructure. Updating UI and persistent data when app is closed