update visualization and add category analysis