tidy up home page and create category table