Changes to viewer to support progressive loading