ajax requests and responses modified