Fixing bug where the add button is not enabled if the dialog is loaded with something already selected.