add category tree render

[re #homework_6]