Fix popover when using append

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