update spaces each time we go in the chat