add dynatree and nested set behaviour