update visible value