update the detail page