[Modify] Change the way to store and display messages