changed from sessionStorage to localStorage