updates to ajax promises