improve tree UI
refactor categories facility