fixed some popover bugs and added popover feature to other positions