parse ajax requests and animation when sending data