implemented edit action