Set up table controller.