onclick to onsubmit