completed add delete list logic in both server and client code.