adjust the layout of the detail page