Fix changes OK button to confirm.

Fix changes OK Button to confirm when Cancel button is shown.