Added a listener for handling changes on the units list.