Setting the correct links