observe changes at document level