toggle the dynamic interface on/off when the device is shaken