fix close button for dialog