Use localStorage instead of sesstionStorage