Refactored the link_helper