added handler for device control