replaced replace with render in editor