document views: refactor into single class w/ methods