add viewTree(to be finished)