Update applicationsController.js