title: jquery ui dialog opens only once
body: <p>I have a button that opens a dialog when clicked.
  The dialog displays a div that was hidden</p>
  
  <p>After I close the dialog by clicking the X icon, the dialog can't be opened again.</p>