fix toggle results view
fix toggling view when switching editors