Changed from sessionStorage to localStorage