Use data_key to index data in ViewFile
Removed superfluous AttrTree instance in ViewFile