added loop to turn layer visibility back on