refactor BaseCtrl into a flux app