added getToSwitcherTextHtml method