fix the popover position problem
add auto placement option for popover