Added delete function and edit function in progress