select branch when searching in a tree dialog