rename RecordsCtrl to MainCtrl,prepare to write QueryCtrl