add case for details view to handle and display categories.