bug fix for updating ui data