wrap links and template in helper classes