Click event listener for the cancel button
The constructor
A reference to the dialog
Event listener method