update the form of chat