Active class allocation for menu links