updates to pyglet-based editor (WIP)