Add class to table lement

Commit 3c86df84f9650bb15db9de680d77ce1b58cf676a has broken the css class alignment to table elements. Instead of dropping it, it should be set to the table element