changes localStorage to sessionStorage