making links functional