adding categories directive
Directive for categories