change condition in ButtonControl.js