update base_controller