update ui widget function format