add editor mode