Added functions to test updating the DOM