store theme setting into localStorage