more ui-lib conversion