added additional options to control popover offset