add directive for categories