using sessionStorage to persist chat