save messages to session storage