Updating the icons function