Change editor and add function