Add polyfill for getISOString
Add a callback in the dialog buttons.
The feature is not added when the cancel button is clicked