Implemented delet and update functionalities