Connecting values when changed