Updated index to new ajax call