documents - update to match the latest design patterns, add a view switcher