Update master_controller.php