refactor switcher into a backbone view