refactor renderSubmit as special case of renderFields