Format main table view