Every dialog box should have an OK button and a Cancel button:
The OK button confirms the changes that the user made in the dialog and closes the dialog.
The Cancel button discards all the changes that the user made and closes the dialog.