Implemented edit and delete.