refactored tree.view, made traversal work