public void hidePopup(){
  showPending=false;
  if (popup != null) {
    popup.hide();
    popup=null;
  }
}

public void hidePopup ( ) { showPending = false ; if ( popup != null ) { popup . hide ( ) ; popup = null ; } }
hides the popup window .
