added unread counter as well as item sorting