Clean up detail page.