I added logic of refreshing items.