refactored editItem and editConfirm

changed editItemand editConfirm to use the same structure as addItem
with .append and .attr