uodate index to ajax