added window. to localStorage