Fixed modal dialog z-index.
Fixed modal width and centering; prevented loss of focus when clicking outside modal.
Added upper-right close button to dialog.