readded points; added function for popover placement