Added the edit and delete functionalities