update UI of widget