Adding functionality to menu links