refactor: renamed addItem for itemDetail