Update data document to work with value dict.

Update views correspondingly.