fix records parameter glitch. Add some extra params to customize the table view.