lay out the detail view