old/ui/dialog: added close button.  fixed click handler to hide dialog