code for metafield editor added