check if event exists on botton click
Modify condition for onclick event in control.js
Merge pull request #762 from ankitjavalkarwork/minorfix

Minorfix-Modify condition for onclick event in control.js