move loadData into BaseCtrl