set route for detail pages