added function to add icons to history