format detail page