added shared pointer to treeitem