OverlayPanel is accessed via its ref and visibility is controlled using toggle, show and hide functions with an event of the target.