convert a tags to link_to helper calls