adding saving map to localStorage