use css classes to keep track of visibility; call remove() on views when they are removed from the viewManager