implemented edit view