added switch by elementUiType directives