:add theme state save code