Optional close button for dialog