updated the queuing function on iPad side