switcher class to work between panels