store and retrieve messages for display in app