updated the javascript that disables submit buttons on click