Add queuing for ajax requests