Gdm 61

We should probably make the event system less dependent on the DOM structure, but ok for now.