Fix sticking spinners on ajax

Fix spinners getting stuck when there are multiple simultaneous ajax calls going on.