add dynatree and nested set behaviour #2