handle error
UI update