move close button to header in dialog