Disabling and enabling button of script execution