Set mode after device is opened