update localStorage