move more values from theDocument to theDocumentValues, only keeping global values in theDocument