Now setting onsubmit and onclick to empty fn instead of null