working on item adding and editing