Added IsValidIndex to edit, delete,copy, done