Format table properly