added update and delete functionality for web client