implemented edit command