set the search page and detail page with angularjs