updating ui from opts