also worth adding a "Are you sure you want to cancel?" dialog box

where, upon clicking "Yes", a second prompt pops up, and upon clicking "No", a "Ok!" box appears, with an "Ok" button to dismiss it.

matigo.ca.