implementing edit sample name feature