Fix html display on icon click