update grid classes