Add controller for editor