Adding close button to the dialog header