implemented edit details functionality