undo modal cb