use visibility hidden to initialize the innergrid