changed parameters of loadTreeItemContents