Codes which display logs when added an item were moved to AddItem()