Update the links when the active layers change.