update index.erb to reflect new api and new file format