updating detail page