fix delete function and fix user add function