sets toggling of scriptwidget's buttons
Merge pull request #124 from bhattigurjot/master

sets toggling of scriptwidget's buttons