Form event searches for onclick and then form submit