Added a cancel button to the dialog box.