Update to dom structure in layout