add view functionality for categories page
implement the category page feature from chapter 6