Formatting tables and file  name change