wire up document view