fixed styling for category and def