Adapt layout of detail page