Changed router to work for editor