better handling of queued tasks in ui