refactor TV panel's language switcher