fix up detail page.