added class detection, to add classes to html element