Added ability to call a function on dialog cancel
Merge pull request #441 from LLK/dialog-cancel-function

Added ability to call a function on dialog cancel