Edited setings, index template to properly serve PDF