device update and delete handle