added advanced example for documentViewer