Update main_controller.cpp