fix multiple submit by adding a flag, remove enable/disable button functions