successfully added metadata edit function