return task from uifactory