add conditional links