modified view design. add class attribute to table