added the display code to the links