Fixes style, documentation and template to popover