added helper method to attach class names to HtmlOptions