modify the overlays function to take an element and return a specific overlay that is attached to that selector