add category tree nesting