previous messages appear using sessionStorage; no errors