onCancel param added

As a prompt replacement I needed the cancel button to also trigger an action.

I see that my editor has also fixed your odd spacing conventions.