Added update and delete functionalities