clean up the page query on the doc viewer a bit