Handle device changing in device control