added deleteAllCompletedItems function