added a spin on ajax requests