more js for submit buttons