dom elements are updated based on the data loaded