modified the way to access link to documents