NPE fix when there is no output
Preserve selected filter when return to MainView