table style refactor