Update common-controller.js