Fix how onsubmit event is handled