implement icon visibility