cleaning up the editor