changed mainTable template to conform to proper html standards.