minor refactor product rest and index.html