Added knockout
applied ko to the legend modal and controls.