Now links update based on what field is selected in real time. Code needs to be DRYed badly though.