update chat layout