Updated the script to submit the sheet instead of canceling