adding pdf print link and security check