added switch devicetype user control