adding latest pdf func > app/views.py