saving expanded state to the repo