transformed divs into anchors for more regular linking
Trimming links according to permissions