app state saved automatically in real time