update styles and grid