Updated popover to render content from template
Added container option for popover
Added auto close option for popover