update style of items