Re renders index.html and pdf