replaced all localStorage to sessionStorage