updating icon visibility