add a getter to Popup classes for the dialog control