changed detail page and index.js