Separating our editor into view and controller. Still not finished.