added code in order to allow switch text changes

added code in order to allow switch text runtime changes