updates device selection
adds robust logic for device and section selection