added working close button for modal dialog