updated Globals and logic for adding new item; untested