Bug fix for view switcher

Signed-off-by: Cory Feitelson <cfeitelson@roovy.com>