Switch document class names when switching between views