consolidating editor and result viewer