Use localStorage instead of sessionStorage