updated version

New version for manage error and delete with ajax