added close button to dialog