move detail view to a page