updating ui example