externalize layout styles