Add on submit event