add category to view.