update behavior tree