implemented edit capability