replace a tags with link_to calls