updated the viewer to use the new functions in 0.1.1