adds icon, and updates index