add close button to dialogs with header text