adds category labels to page