Pass close-fn to body to close popover programatically