Change the Record view controller to table view controller.
Reformat the code by AppCode.