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