add feature for handling the close button in the tooltip to hide the tooltip

http://stackoverflow.com/questions/17171361/angular-ui-bootstrap-popover-with-close-button