update localStorage theme when theme is changed