added routes to show by category
refactored patterns