Fixed #165 and added auto positioning on popover.