edit on index to change API call