implemented openOverlay function