add view switcher