storing messages sent from the ui