add the payload to the submit function