change setPtrUIHandler to addPtrUIHandler