updating styles to support multiple layouts