update BaseController
update ActiveRecord