updates routes
adds index to items in routes