disable "Commit" button once it is clicked