add code to links