added switch component.