combine table templates, add *MainCtrl for each section