updated for edit/new/delete item