patch bootstrap popover to allow for callbacks, which we need.