refactored table styles