Fix popover when using append

Using a HTML object for content is currently adding the same content several time in popover. The old content should be removed before adding the new one.