changed some uses of :visible and :hidden to use native properties instead