add detector window toggle slider to main window, change detector window default state