added update of treeitem of refcontainer
added wrap method