eliminate onOneEvent from addUI

now users have to pass a callback function and that will be called
instead of onEvent / onOneEvent