Fix bug where css class were set wrongly
more escaping in views