Update ajax api requests