Corrected the submit handler to be compatible with the 'filter events' value of the submit button.