updates styles and layouts