Added option to define the vertical and horizontal placement of the popover