update unread count when loading an item