containers set to grid depending on states