Added debug logs, fixes in ading & editing items