change redirect to detail page