update index and package.json