remove UIHandler and implement sync() method in UITaskListener