Rename modal onOpen/onClose to willOpen/willClose and add didOpen/didClose callbacks.