Formatting the index tables