Everything was working until I started using the new editor. My on open function was preceded by global variables and therefore run in the editor did not work. The new edito