make theme switcher into a full blown directive