changed the opened switching boolean