refactoring css for tables