Change styles to class