fix the selected category for the view.