Changed so the constructor is the new constructor of EditorFrame