added code to show categories and there groups
fix merge prob