Added support to multiple OK and Cancel callbacks.