Refactored client side delete and update call