fix the detail pages