corrected the category view