implemented edit button