refactored links to link_to