Made editor independent from view.