Reordering sources updates UI

This also fixed a bug where precedence on/off state could not be saved.