add my vesion of view switcher