use sessionStorage instead of localStorage