Fix html display on icon click

cc @antoviaque