Added logic to show category stats