Easy method to handle logic behind active links