made link button execute code if when switching to linked, changed link button to show the current state