Implemented edit and delete