Added functionality to popover