Updates CSS class