put styles in the right place