converting detail pages to react