implements html overlays