bsGrid callbacks + popover close on outer click