change sessionStorage to localStorage