Add link loading function