finish detail page