add $routeParams for detail page