don't close dialog if close is clicked.