update to fix the onsubmit