changes to ajax