edit detail page