added the list to the onload method