Added the edit, update and delete functionality