sync data with localStorage