removed itemText and itemBody

refactored code to remove globals from addItem