entirely refactored to use the route param as source of all logic for detail view