added function and updated template so that classes in the html can be assigned from smart table object