custom helper function for active links