added code to show categories and there groups