implement of some tree view features