More work on the dialog. Made it draggable.