fill the dom with the last set of elements