Remove static on() methods in editor overlay, change parameter type of
non-static ones
Refactor document initialization