how to retrieve the ListBox items from the GUI