changed updateItemColor() not to throw errors