add styles and update category search logic in controller