update styles and layout