Changed event handler to submit rather than click