update icon on click