formula update now causes codemirror to lose focus