fixed some styles and optimised the table-css