added the DOM display function based on the array/list and it works