little function to open pdf and not html