update icon of each box