dom overlays layout fixes