update the style of category indicator