Added layout and logic so only one link appears on repersentitive profile page