adding the boolean setting when we save a document