make Theme#define context stable
template switcher implemented