Some work on the pdf selector
Moved to html 5 routes