updates to dom