If you are mapping a repeating group and want to link your form items to your list (including being able to refresh), the mapping needs to indicate the repeating group and the id field needs to be in the repeating group. On submit, the code will use that ID for updating existing items and if it is blank will add new items. On refresh, the id is used to return the data for the item from the list. Does that make sense?