implemented tree-preview (WIP)