addded function that generates the icon array/list