changes app state data structure which is saved to local storage