Refine social icon code