new router function. links goto doc view