adding update delete api to server