added update icon function