replace localStorage with sessionStorage