removes the array of lists from the user interface page and puts it into the list class page