Formatting the category search