I think you should be writing to StoredState, not CommonState -- you initialized `mapPanControlName` in StoredState and you're watching `mapPanControlName` on StoredState, so why write to identically-named variables in CommonState? Furthermore, you need to make sure that the booleans in StoredState reflect a mutually exclusive map control state at all times. As it stands, you could store a state where the user had multiple map controls activated at the same time. For example, the map pan, zoom, and select controls could all be on at the same time.