moved functions to collectData
moving to one unified handler function
adding itemList