Added ajax protected member to BaseController so you don't have to do a $ajax = new Ajax($this->ui) every time on every action.