delete project function and unique number issue