[CHANGE] save activities' state on config changes