separated out the icon detection to a different function. adding more to table building function for testing