fix bug: the edit item logic isn't changed for new category function.