Edit main to print table content