updated treemodel to accept double clicks and get cell types