working on foamtree visualization