moving styles to the layout