Made minor changes to popover plugin