updated pages, added details page, localstorage added in .js file