Added allowPopup attribute