update chat method