updated the editor handler