Update APC20.control.js

Mode switching improvements