adds changing pdf url functionality