Update base_controller.cpp