Minorfix-Modify condition for onclick event in control.js