Created json for counting items
clears detailed-info when click on diferent item