change context of onSubmit to instance