fix a lot. treeCtrl and viewpiot contrl