refs #5 add callback for new item, removed commented out code and refactored out duplicated code