How to change the device settings