change the collection name
refactor the code for edit item