Added method isVisible in Popup