Update principal_controller.js